//
//  MeTableViewCell.m
//  X-Tribe
//
//  Created by Miss.Ou on 16/3/29.
//  Copyright © 2016年 Miss.Ou. All rights reserved.
//

#import "MeTableViewCell.h"

@implementation MeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createCell];
    }
    
    return self;
}

-(void)createCell{
    
    self.backgroundColor = [UIColor colorWithRed:0.93 green:0.89 blue:0.83 alpha:1.00];
    _imageIcon = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.height, self.height)];
    _imageIcon.backgroundColor = [UIColor colorWithRed:1.00 green:0.79 blue:0.57 alpha:1.00];
    [self addSubview:_imageIcon];
    _imageIcon.image = [UIImage imageNamed:@""];
    
    _label = [[UILabel alloc] initWithFrame:CGRectMake(self.imageIcon.width, 0, self.width-self.height, self.height)];
    [self addSubview:_label];
    _label.textAlignment = NSTextAlignmentCenter;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
